package com.itheima.health.service;

import com.itheima.health.entity.PageResult;
import com.itheima.health.entity.QueryPageBean;
import com.itheima.health.pojo.Menu;

import java.util.List;

public interface MenuService {
    //查询所有菜单信息
    List<Menu> findAll();

    //查询主菜单信息
    PageResult findPage(QueryPageBean queryPageBean);

    //查询所有子菜单信息
    List<Menu> findAllSonMenu();

    //添加菜单
    void add(Integer[] sonIds, Menu menu);

    //添加子菜单
    void addSonMenu(Menu menu);

    //获取指定id的菜单
    Menu findById(Integer id);

    //获取主菜单所关联的子菜单的id值
    List<Integer> findSonIdAssociationParentIds(Integer id);

    //编辑主菜单
    void editParentMenu(Integer[] sonIds, Menu menu);

    //编辑子菜单
    void editSonMenu(Menu menu);

    //删除菜单
    void delById(Integer id);

    //查询子菜单信息
    PageResult findPageSonMenu(QueryPageBean queryPageBean);


}
